﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WinnerCMS.Data.Mapping
{
    public partial class ExtensionCategoryListMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<WinnerCMS.Model.ExtensionCategoryList>
    {
        public ExtensionCategoryListMap()
        {
            // table
            //ToTable("CMS_ExtensionCategoryList");

            // keys
            HasKey(t => t.Id);

            // Properties
            Property(t => t.Id)
                
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(t => t.ModelId)

                .IsRequired();
            Property(t => t.Ecid)

                .IsRequired();
            Property(t => t.ContentId)

                .IsRequired();

            // Relationships

            //InitializeMapping();
        }
    }
}

